package Demo1;

//这个类不需要产生实例化对象，并且需要做一些继承多态的操作
public abstract class Animal {
    public String name;
    public int age;
    public String color;

    public Animal(){

    }
    public Animal(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    abstract void eat();

    abstract void sleep();







}
